/**
 * author:wb-zhaojunwei
 * email:wb-zhaojunwei.alibaba-inc.com
 * description: 我是Me找来的送礼物的代理
 * date:2016/7/13
 */
public class ProxyMe implements GiveGift{
    /*代理模式必须获得雇主的信息，才能进行代理*/
    private Me me;

    public ProxyMe(ShowGril showGril) {
        me = new Me(showGril);
    }

    /**
     * 送花
     */
    @Override
    public void giveFlower() {
        me.giveFlower();
    }

    @Override
    public void giveChocolates() {
        me.giveChocolates();
    }

    @Override
    public void giveDog() {
        me.giveDog();
    }
}
